package io.lckgroup.modules.lck.service.impl;

import org.springframework.stereotype.Service;

import java.util.Map;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.lckgroup.common.utils.PageUtils;
import io.lckgroup.common.utils.Query;

import io.lckgroup.modules.lck.dao.ShopFoodTypeDao;
import io.lckgroup.modules.lck.entity.ShopFoodTypeEntity;
import io.lckgroup.modules.lck.service.ShopFoodTypeService;


@Service("shopFoodTypeService")
public class ShopFoodTypeServiceImpl extends ServiceImpl<ShopFoodTypeDao, ShopFoodTypeEntity> implements ShopFoodTypeService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<ShopFoodTypeEntity> page = this.page(
                new Query<ShopFoodTypeEntity>().getPage(params),
                new QueryWrapper<ShopFoodTypeEntity>()
        );

        return new PageUtils(page);
    }

}